package cn.dust.design.pattern.behavioral.command;

/**
 * @Author: dust
 * @Date: 2019/11/28 17:30
 */
public class Test {

    public static void main(String[] args) {
        CourseVideo courseVideo=new CourseVideo("Java");
        OpenCommand openCommand=new OpenCommand(courseVideo);
        CloseCommand closeCommand=new CloseCommand(courseVideo);

        Staff staff=new Staff();
        staff.addCommane(openCommand);
        staff.addCommane(closeCommand);
        staff.executeCommands();
    }

}
